package com.sali.function_interface;

import java.util.function.Function;

/*
 * 函数型接口，有一个输入，一个输出
 * */
public class a_FunctionalInterface {


    public static void main(String[] args) {
        Function<String, Integer> function = s -> s.length();
        System.out.println(function.apply("abc"));
    }

}
